package com.suyl.callback.highConcurrency.controller;

import com.suyl.callback.highConcurrency.service.impl.A;
import com.suyl.callback.highConcurrency.service.impl.B;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 回调controller测试
 */
@RestController
@RequestMapping("callback")
public class CallBackController {

    @RequestMapping("wt")
    @ResponseBody
    public String getCallBack() {
        // 回调实现
        B b = new B();
        A a = new A(b);
        a.ask("1+1=?");
        return null;
    }
}
